import React, { useEffect, useRef, useState, lazy, useImperativeHandle} from "react";
import "./index.less";
import { useModel } from "umi";
import { dataMenu } from "./data"
import NotePage from "~/public/cpas-business/cpas-table/CpasNotes/index";
// import NotePage from "./page";

const Annotations = React.forwardRef((props: any, ref: any) => {
  const { initialState } = useModel('@@initialState');
  // const { dbname, zcbfid, zcbfName, sjnd, AuditReportTemplate } = initialState?.curPart as API.CurPart;
  const notePageRef = useRef<any>();
  useImperativeHandle(ref, () => ({
    notePageRef,
  }))

  return (
   <div>
     <NotePage ref={notePageRef} initialState={initialState} bsdw={initialState?.curPart?.bsdw} dbname={initialState?.curPart?.dbname} dataMenu={dataMenu}/>

   </div>
  );
})

export default Annotations;
